-- GENERATED SPELL FOR [Highland Strider] --


function spell0_2559(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16830,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2559', 599, 1)
end

function spell1_2559(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1754,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2559', 0, 1)
end

function spell2_2559(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2559', 0, 1)
end

function Sorts_2559(pUnit, Event)
local choix_sorts_2559 = math.random(0, 2)
if choix_sorts_2559 == 0 then
pUnit:RegisterEvent('spell0_2559', 1, 1)
end
if choix_sorts_2559 == 1 then
pUnit:RegisterEvent('spell1_2559', 1, 1)
end
if choix_sorts_2559 == 2 then
pUnit:RegisterEvent('spell2_2559', 1, 1)
end
end

function mob2559_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2559', math.random(1500, 3000), 1)
end

function mob2559_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2559_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2559_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2559, 1, 'mob2559_Action')
RegisterUnitEvent(2559, 2, 'mob2559_Leave')
RegisterUnitEvent(2559, 3, 'mob2559_Kill')
RegisterUnitEvent(2559, 4, 'mob2559_Die')
